<?php

namespace app\index\model;

use coser\Db;

class MenuModel
{
	/*
	 *[添加]
	 */
	public function add($data)
	{
		$list = Db::name('menu')->insert($data);
		var_dump($list);
	}
	
	/*
	 *[获取列表]
	 */
	public function getList($where)
	{
		$list = Db::name('comic')
					->uas('t1')
					->field('t1.item,t2.*')
					->ujoin('comic_pic','t2','LEFT')
					->uon('t1.id = t2.pid')
					->where($where)
					->select();
		var_dump($list);
	}
	
	
}